//called after the DOM has loaded
//(it is better to do most every startup thing here, some things need to be in window.load though)
$(document).ready(function()
{
    //start the countdown clock
    $('#CountdownClock').tzineClock();
});

//called after everything has loaded (including images)
$(window).load(function()
{
    //setup the drawing canvas
    initDrawingCanvas();
});

//Event: window was resized
window.onresize = function()
{
    //update the size of the drawing canvas
    resizeDrawingCanvas();
}